namespace Ellwood.Manage.MentApi.Utility.InitDatabaseExt;

public class FunctionAttribute:Attribute
{

    private string Description;
    private MuType MuType;

    /// <summary>
    /// 构造函数
    /// </summary>
    /// <param name="description"></param>
    /// <param name="muType"></param>
    public FunctionAttribute(MuType _muType,string _description)
    {
        Description = _description;
        MuType = _muType;
    }

    /// <summary>
    /// 描述
    /// </summary>
    /// <returns></returns>
    public string GetDescription() => Description;
    
    /// <summary>
    /// 功能类型
    /// </summary>
    /// <returns></returns>
    public MuType GetMuType() => MuType;
}

/// <summary>
/// 功能类型
/// </summary>
public enum MuType
{
    /// <summary>
    /// 一级菜单
    /// </summary>
    Page=1,
    /// <summary>
    /// 按钮功能
    /// </summary>
    Btn=2
    
}